home *** CD-ROM | disk | FTP | other *** search
Wrap
TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk)))) TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk)))) NNNNAAAAMMMMEEEE Tk_GetJustify, Tk_NameOfJustify - translate between strings and justification styles SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>> Tk_Justify TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((_i_n_t_e_r_p, _s_t_r_i_n_g, _j_u_s_t_i_f_y_P_t_r)))) char * TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy((((_j_u_s_t_i_f_y)))) AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS Tcl_Interp *_i_n_t_e_r_p (in) Interpreter to use for error reporting. char *_s_t_r_i_n_g (in) String containing name of | justification style (``left'', | ``right'', or ``center''). int *_j_u_s_t_i_f_y_P_t_r (out) Pointer to location in which to store justify value corresponding to _s_t_r_i_n_g. Tk_Justify _j_u_s_t_i_f_y (in) Justification style (one of the values listed below). DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy places in *_j_u_s_t_i_f_y_P_t_r the justify value corresponding to _s_t_r_i_n_g. This value will be one of the following: TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____LLLLEEEEFFFFTTTT Means that the text on each line should start at the left edge of the line; as a result, the right edges of lines may be ragged. TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____RRRRIIIIGGGGHHHHTTTT Means that the text on each line should end at the right edge of the line; as a result, the left edges of lines may be ragged. TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____CCCCEEEENNNNTTTTEEEERRRR Means that the text on each line should be centered; as a result, both the left and right edges of lines may be ragged. Under normal circumstances the return value is TTTTCCCCLLLL____OOOOKKKK and _i_n_t_e_r_p is unused. If _s_t_r_i_n_g doesn't contain a valid justification style or an abbreviation of one of these names, then an error message is stored in _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_j_u_s_t_i_f_y_P_t_r is unmodified. PPPPaaaaggggeeee 1111 TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk)))) TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk)))) TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy is the logical inverse of TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy. Given a justify value it returns a statically-allocated string corresponding to _j_u_s_t_i_f_y. If _j_u_s_t_i_f_y isn't a legal justify value, then ``unknown justification style'' is returned. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS center, fill, justification, string PPPPaaaaggggeeee 2222